package com.sapitest.imp.model;

import com.sapitest.keywords.JSONOperation;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

@Data
public class DeviceInfo {
    private String meid;
    private String imei;
    private String androidVersion;
    private String model;
    private String manufacturer;

    public String toJSONString(){
        Map<String, Object> map = new HashMap<>();
        map.put("meid", getMeid());
        map.put("imei", getImei());
        map.put("androidVersion", getAndroidVersion());
        map.put("model", getModel());
        map.put("manufacturer", getManufacturer());
        return JSONOperation.parseObjectString(map);
    }

}
